'use strict';

const Controller = require('../core/BaseController');
/**
* @controller Appointment
*/
class AppointmentController extends Controller {
  // 4001  医院信息获取  appointment/getHospitalInformation
  /**
   * @summary 医院信息获取
   * @description  4001  医院信息获取  appointment/getHospitalInformation
   * @router post /appointment/getHospitalInformation
   * @request body UGetHospitalInformation model 医院信息获取
   * @response 200 JsonResult 操作结果
   */
  async getHospitalInformation() {
    const { ctx, service } = this;
    const data = ctx.request.body;
    await this.returnService(service.appointment.getHospitalInformation(data));
  }

  // 4002  科室信息获取  appointment/listDepartment
  /**
   * @summary 科室信息获取
   * @description 4002  科室信息获取  appointment/listDepartment
   * @router post /appointment/listDepartment
   * @request body UListDepartment model 科室信息获取
   * @response 200 JsonResult 操作结果
   */
  async listDepartment() {
    const { ctx, service } = this;
    const data = ctx.request.body;
    await this.returnService(service.appointment.listDepartment(data));
  }

  // 4003  医生信息获取  appointment/listDoctor
  async listDoctor() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }

  // 4004  科室医生搜索  appointment/queryDeptAndDoctor
  async queryDeptAndDoctor() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }

  // 4005  排班信息获取  appointment/listNumber
  /**
   * @summary 排班信息获取
   * @description 4005  排班信息获取  appointment/listNumber
   * @router post /appointment/listNumber
   * @request body UListNumber model 排班信息获取
   * @response 200 JsonResult 操作结果
   */
  async listNumber() {
    const { ctx, service } = this;
    const data = ctx.request.body;
    await this.returnService(service.appointment.listNumber(data));
  }

  // 4006  预约提交      appointment/confirmAppointment
  async confirmAppointment() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }

  // 4007  预约列表获取  appointment/listAppointmentWait
  async listAppointmentWait() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }


  // 4008  预约取消      appointment/appointmentPayCancel
  async appointmentPayCancel() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }


  // 4009  预约挂号预结算  appointment/paymentBudget
  async paymentBudget() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }

  // 4010  预约挂号支付通知  appointment/appointmentPay
  async appointmentPay() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }
  // /////////////////////////////////////////////////////////////////////
  // 4014  停诊通知  appointment/getCanceledWorks
  async getCanceledWorks() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }

  // 4015  就诊状态同步  appointment/syncOrderState
  async syncOrderState() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }

  // 4016  退号通知  appointment/refundNotice
  async refundNotice() {
    const { ctx } = this;
    const data = ctx.request.body;
    console.log(data);
  }
}

module.exports = AppointmentController;
